package junit;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

import main.Display;
import main.Store;
import main.TravelGroup;

/* @author Jarvis */
public class StoreTest {
	
	private Store store;
	private TravelGroup group;
	
	
	@Before
	public void setUp(){
		store = new Store();
		group = new TravelGroup();
	}
	
	@Test
	public void testEmptyConstructor() {
		store.buyFromStore(0, 0, group);
	}
	
	public void testBuy() {
		store.setPriceFood(10);
		group.setMoney(20.00);
		store.buyFromStore(1,2,group);
		assertSame(group.getMoney(), 0.0);
	}
}
